<html>
<head>
<title>{{ page_title|escape }}</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/styles.css">

<style>
<!--
td.headerright {background-color: {{site.color|escape}}}
div.useritem {background-color: {{site.color|escape}}}

th.label {background-color: {{site.color|escape}}}
div.inside {background-color: {{site.color|escape}}}
th {background-color: {{site.color|escape}}}

-->
</style>
</head>
<body>
<table class="header">
	<tr>
		<td class="headerlogo" align="center"><a class="logo" href="/a/{{site.path}}"><img
			src="/getimg/{{site.path}}.{{site.logotype}}" /></a>
		<td class="headerright">
		<table class="headerright">
			<tr>
				<td align="left">{{ site.description|escape }}
				<td align="right">{% if loggedin %} <b>{{ username }}</b> | <a
          href="{{ logouturl }}">(Log out)</a> | <a
					href="/?edit={{site.path}}#edit">Edit Site</a> | <a
					href="/a/{{ site.path }}/upload/UploadVideo">Upload</a> | <a href="/a/{{ site.path }}/acct">My
				Account</a> {% else %} <a href="{{ loginurl }}">Log in</a> {% endif %} | <a href="/">Other Sites</a>
			<tr>
				<td><a href="/a/{{ site.path }}/">Videos</a> | <a href="/a/{{ site.path }}/userlist">Users</a> 
				<td class="searchbox" align="right">
				<form method="get" action="/a/{{ site.path }}/"><input class="search"
					type="text" name="query" value="{{query|escape}}" />
				<button>search</button>
				</form>
		</table>
</table>
<p>{% if errormsg %}
<div class="error">error: {{ errormsg }}</div> {% endif %}